package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysCarLocationMapper;
import com.ruoyi.system.domain.SysCarLocation;
import com.ruoyi.system.service.ISysCarLocationService;

/**
 * 车辆位置表Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-05-11
 */
@Service
public class SysCarLocationServiceImpl implements ISysCarLocationService 
{
    @Autowired
    private SysCarLocationMapper sysCarLocationMapper;

    /**
     * 查询车辆位置表
     * 
     * @param locId 车辆位置表主键
     * @return 车辆位置表
     */
    @Override
    public SysCarLocation selectSysCarLocationByLocId(Long locId)
    {
        return sysCarLocationMapper.selectSysCarLocationByLocId(locId);
    }

    /**
     * 查询车辆位置表列表
     * 
     * @param sysCarLocation 车辆位置表
     * @return 车辆位置表
     */
    @Override
    public List<SysCarLocation> selectSysCarLocationList(SysCarLocation sysCarLocation)
    {
        return sysCarLocationMapper.selectSysCarLocationList(sysCarLocation);
    }

    /**
     * 新增车辆位置表
     * 
     * @param sysCarLocation 车辆位置表
     * @return 结果
     */
    @Override
    public int insertSysCarLocation(SysCarLocation sysCarLocation)
    {
        return sysCarLocationMapper.insertSysCarLocation(sysCarLocation);
    }

    /**
     * 修改车辆位置表
     * 
     * @param sysCarLocation 车辆位置表
     * @return 结果
     */
    @Override
    public int updateSysCarLocation(SysCarLocation sysCarLocation)
    {
        return sysCarLocationMapper.updateSysCarLocation(sysCarLocation);
    }

    /**
     * 批量删除车辆位置表
     * 
     * @param locIds 需要删除的车辆位置表主键
     * @return 结果
     */
    @Override
    public int deleteSysCarLocationByLocIds(Long[] locIds)
    {
        return sysCarLocationMapper.deleteSysCarLocationByLocIds(locIds);
    }

    /**
     * 删除车辆位置表信息
     * 
     * @param locId 车辆位置表主键
     * @return 结果
     */
    @Override
    public int deleteSysCarLocationByLocId(Long locId)
    {
        return sysCarLocationMapper.deleteSysCarLocationByLocId(locId);
    }
}
